#include <iostream>

using namespace std;

unsigned char test[5500];

int main()
{
	int n;
	cin >> n;
	int num;
	for(int i=0; i<n; ++i) {
		cin >> num;
		if(test[num] == 0 ) {
			cout << num << ' ';
			test[num]=1;
		}
	}
	return 0;
}
